<?php
/**
 * User: @lose
 * Date: 2019-10-12
 * Time: 18:26
 */

namespace Biz\service;

use Biz\model\store\AdWhiteList as mAdWhiteList;
/**
 * @deprecated
 */
class BrandAdWhiteList
{
    public static function getList()
    {
        $nowTime = date('Y-m-d H:i:s');
        $where = [
            'start_time[<=]' => $nowTime,
            'end_time[>=]' => $nowTime,
            'whitelist_status' => mAdWhiteList::STATUS_NORMAL,
        ];

        $list = mAdWhiteList::getListByWhere($where, 'shop_id');
        return array_unique($list);
    }
}